import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

// 创建班组
export const personnelGroupCreate = (data) => postRequest('/personnel/group/create', data);

// 更新班组
export const personnelGroupUpdate = (data) => putRequest('/personnel/group/update', data);

// 删除班组
export const personnelGroupDelete = (params) => deleteRequest('/personnel/group/delete', params);

// 获得班组
export const personnelGroupGet = (params) => getRequest('/personnel/group/get', params);

// 获得班组分页
export const personnelGroupPage = (params) => getRequest('/personnel/group/page', params);

// 导出班组 Excel
export const personnelGroupExportExcel = (params) => getRequest('/personnel/group/export-excel', params);

// 提交
export const personnelGroupSubmitAudit = (params) => postRequest('/personnel/group/submit-audit', params);
// 撤销提交
export const personnelGroupClearSubmitAudit = (params) => postRequest('/personnel/group/clear-submit-audit', params);
// 审核
export const personnelGroupAudit = (params) => postRequest('/personnel/group/audit', params);
// 撤销审核
export const personnelGroupClearAudit = (params) => postRequest('/personnel/group/clear-audit', params);
// 保存并审核
export const personnelGroupCreateAudit = (params) => postRequest('/personnel/group/create-audit', params);
// 更新并审核
export const personnelGroupUpdateAudit = (params) => putRequest('/personnel/group/update-audit', params);
// 关闭
export const personnelGroupClose = (params) => postRequest('/personnel/group/close', params);
// 撤销关闭
export const personnelGroupClearClose = (params) => postRequest('/personnel/group/clear-close', params);

// 批量绑定人员
export const personnelGroupUpdateEmp = (params) => postRequest('/personnel/group/update-emp', params);
